package dao;

/**
 *
 * @author Alex
 */
public class InexistantEntityException extends Exception
{
    private String name;
    private Object id;

    public InexistantEntityException(Class name, Object id) {
        this.name = name.getSimpleName();
        this.id = id;
    }

    @Override
    public String toString()
    {
        return "L'entité " + name + " id " + id + " n'existe pas.";
    }


}
